<%--
  Created by IntelliJ IDEA.
  User: wagger
  Date: 2019/05/27
  Time: 下午 10:47
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Traveler Blog --> 做一个孤独的旅行者，发现存在的意义</title>
    <link href="/client/css/bootstrap.min.css" type="text/css" rel="stylesheet">
    <link href="/client/css/style.css" type="text/css" rel="stylesheet">
    <link type="text/css" href="/client/css/nprogress.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="/client/js/html5shiv.min.js" type="text/javascript"></script>
    <script src="/client/js/respond.min.js" type="text/javascript"></script>
    <script src="/client/js/selectivizr-min.js" type="text/javascript"></script>
    <![endif]-->
    <%--<link rel="apple-touch-icon-precomposed" href="/client/images/icon/icon.png">--%>
    <link rel="shortcut icon" href="/client/images/tou.ico">
    <meta name="Keywords" content="" />
    <meta name="description" content="" />
    <script type="text/javascript">
        //判断浏览器是否支持HTML5
        window.onload = function() {
            if (!window.applicationCache) {
                window.location.href="/client/ie.html";
            }
        }
    </script>
</head>
<div class="sentence"> <strong>用户登录</strong>
    <div style="text-align: center;margin-top: 3px">
        <c:choose>
            <c:when test="${empty user}">
                <a target="_self" href="/client/login.jsp" name="result"> Hi,请登录</a> | <a target="_self" href="/client/regist.jsp">注册</a>
            </c:when>
            <c:otherwise>
                <a style="color: #337ab7">Hi,${user.username}</a> | <a href="/user/findById.do">个人中心</a> | <a href="/user/exit.do">退出登录</a>
            </c:otherwise>
        </c:choose>
    </div>
</div>
